package com.lanxin.judge.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-08-01
 */
@TableName("lc_flow")
public class LcFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    @TableField("flowName")
    private String flowName;

    @TableField("docType")
    private String docType;

    //单据类型
    public static enum DocType{
        TYPE_1("BXD","报销申请单"),
        TYPE_2("GMD","资产购买申请单"),
        TYPE_3("YDD","资产移动申请单");

        @EnumValue//此注解表示该属性存入数据库
        private final String docType;
        private final String docTypeName;

        DocType(String docType, String docTypeName) {
            this.docType = docType;
            this.docTypeName = docTypeName;
        }

        public String getDocType() {
            return docType;
        }

        public String getDocTypeName() {
            return docTypeName;
        }
    }

    @TableField("info")
    private String info;

    @TableField("state")
    private String state;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }
    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }
    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "LcFlow{" +
            "oid=" + oid +
            ", flowName=" + flowName +
            ", docType=" + docType +
            ", info=" + info +
            ", state=" + state +
        "}";
    }
}
